#pragma once

#include <QtWidgets/QMainWindow>

namespace Ui {
    class HPdfViewClass;
};

class QPdfWidget;
class QHBoxLayout;

class HPdfView : public QMainWindow
{
    Q_OBJECT

public:
    HPdfView(QWidget *parent = Q_NULLPTR);
    virtual ~HPdfView();

    void Init();
    void InitSignalAndSlot();

    void OnOpen();
    void OnLoadFinished();
    void OnLoadFinished2();
    // 当前页数
    void OnPageNumberChanged(int nPageNumber);
    // 总页数
    void OnPageCountChanged(int nPageCount);
    //页面大小发生变化
    void OnPageScaleChanged(double fScale);

private:
    Ui::HPdfViewClass* ui = nullptr;
    QPdfWidget* m_pPdfWidget = nullptr;
    QPdfWidget* m_pPdfWidget2 = nullptr;
    QHBoxLayout* m_pPdfWidgetLayout = nullptr;
    QHBoxLayout* m_pPdfWidgetLayout2 = nullptr;
};
